function print() {
    let str = "";
    for (let i = 1;i <= 9;i ++) {
        for (let j = 1;j <= i;j ++) {
            str += `${i}*${j}=${i * j}\t`;
        }
        str += "\n";
    }
    return str;
}

console.log(print());